import { defineStore } from "pinia";
import { computed, ref } from "vue";
import { useTabsStore } from "@/stores/tabs";

interface Menu {
  activeMenu: string;
}
export const useMenuStore = defineStore("menu", {
  state: (): Menu => ({
    activeMenu: "",
  }),
  getters: {
    getActiveMenu(state) {
      const tabsStore = useTabsStore();
      return [tabsStore.activeTab];
    },
  },
  actions: {},
  persist: true,
});
